﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStandardItemModel>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_fontListView_clicked(const QModelIndex &index);

    void on_styleListView_clicked(const QModelIndex &index);

    void on_sizeListView_clicked(const QModelIndex &index);

    void on_chkStrikeout_clicked(bool checked);

    void on_chkUnderline_clicked(bool checked);

private:
    void initData();
private:
    Ui::MainWindow *ui;
    QStandardItemModel *mFontListModel;
     QStandardItemModel *mStyleListModel;
      QStandardItemModel *mSizeListModel;
    QFont mFont;
};
#endif // MAINWINDOW_H
